<template>
  <div class="magnify">
    <img :src="imgurl" alt="">
    <div class="off" @click="off">x</div>
  </div>
</template>

<script>
export default {
  data(){
    return{

    }
  },
  props:['imgurl'],
  methods:{
    off(){
      this.$store.commit('tong/changeImgstaus',false)
    }
  }
}
</script>

<style lang="scss" scoped>
@import "../../styles/magnifyImg.scss";
</style>